package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ReceiveLogMapper;
import com.ruoyi.system.domain.ReceiveLog;
import com.ruoyi.system.service.IReceiveLogService;

/**
 * 接受记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-11
 */
@Service
public class ReceiveLogServiceImpl implements IReceiveLogService 
{
    @Autowired
    private ReceiveLogMapper receiveLogMapper;

    /**
     * 查询接受记录
     * 
     * @param id 接受记录主键
     * @return 接受记录
     */
    @Override
    public ReceiveLog selectReceiveLogById(Long id)
    {
        return receiveLogMapper.selectReceiveLogById(id);
    }

    /**
     * 查询接受记录列表
     * 
     * @param receiveLog 接受记录
     * @return 接受记录
     */
    @Override
    public List<ReceiveLog> selectReceiveLogList(ReceiveLog receiveLog)
    {
        return receiveLogMapper.selectReceiveLogList(receiveLog);
    }

    /**
     * 新增接受记录
     * 
     * @param receiveLog 接受记录
     * @return 结果
     */
    @Override
    public int insertReceiveLog(ReceiveLog receiveLog)
    {
        return receiveLogMapper.insertReceiveLog(receiveLog);
    }

    /**
     * 修改接受记录
     * 
     * @param receiveLog 接受记录
     * @return 结果
     */
    @Override
    public int updateReceiveLog(ReceiveLog receiveLog)
    {
        return receiveLogMapper.updateReceiveLog(receiveLog);
    }

    /**
     * 批量删除接受记录
     * 
     * @param ids 需要删除的接受记录主键
     * @return 结果
     */
    @Override
    public int deleteReceiveLogByIds(Long[] ids)
    {
        return receiveLogMapper.deleteReceiveLogByIds(ids);
    }

    /**
     * 删除接受记录信息
     * 
     * @param id 接受记录主键
     * @return 结果
     */
    @Override
    public int deleteReceiveLogById(Long id)
    {
        return receiveLogMapper.deleteReceiveLogById(id);
    }
}
